
<div class='profile_admin'>
	<h4 class="ui-widget-header info_box_header text ui-widget-content ui-corner-all"><?php echo $genus.' '.$species?></h4>

	<div class="content text">
		Choose photo:
		<?phpecho form_open_multipart('user/do_upload/'.$taxon_id);?> 
			<input type="file" name="userfile" class= "ui-button ui-button-text-only ui-widget ui-state-default ui-corner-all"  size="10" />
			<input type="submit" value="upload" class="ui-button ui-button-text-only ui-state-default ui-corner-all"/>
		</form> 
	</div>
	
	<div class="content text">
  		<b>Family: </b><?php echo nbs(14).$family?><br>
  		<b>Order: </b><?php echo nbs(15).$order_name?><br>
  		<b>Class: </b><?php echo nbs(15).$class?><br>
  		<b>Phylum: </b><?php echo nbs(15).$phylum?><br>
  		<b>Kingdom: </b><?php echo nbs(17).$kingdom?><br>
  		<b>Domain: </b><?php echo nbs(17).$domain?>
	</div>



	<div class="text content">
		<h6 class="ui-widget-header info_box_subheader text ui-widget-content ui-corner-all">Description</h6>
		<?php echo $description;?>
		<br><hr>

		<b>Scientificname Author: </b> <?php echo $scientificname_author;?>
		<br>
		<b>Habitat: </b><?php echo $habitat;?>
		<br>
		<b> Mode of Reproduction: </b><?php echo $reproduction_mode;?>
		<br>
		<b>Conservation Status: </b><?php echo $conservation_status;?>
		<br>

		<hr>
		<b><i>Main Reference: </i></b>
		<?php echo $reference_code.$reference_number;?>
	</div>


</div>

<div class="profile_admin content">

	<div class="grid_3">
		<?php echo form_open('user/vernacular_name')?>
		<?php echo form_input(array('id'=>'reference_number', 'name'=>'reference_number','type'=>'hidden', 'value'=>$reference_number ));?>
		<?php echo form_input(array('id'=>'reference_code', 'name'=>'reference_code','type'=>'hidden', 'value'=>$reference_code ));?>
		<?php echo form_input(array('id'=>'taxon_id', 'name'=>'taxon_id','type'=>'hidden', 'value'=>$taxon_id ));?>	
		<center>		
			<?php  echo form_submit(array('name'=>'submit','class'=>'ui-button ui-button-text-only ui-widget ui-state-default ui-corner-all ui-icon-locked'), 'Add Common Name');?>
		</center>
		<?php echo form_close();?>
		<div class="grid_2">
			<b> Common Names: </b>
		</div>
		<div class="">
			<b>Ref.Code</b>
		</div>
		<?php 

		if($vernacular_check == true){
			$vernacular_query = $this->user_model->vernacular_query($taxon_id);
			foreach ($vernacular_query -> result() as $row ){	
				echo '<div class="grid_1">';
				echo $row->vernacular_name;
				echo '</div>';
				echo '<div class="grid_1 push_1">';
				echo $row->reference_code.''.$row->reference_number.'</b>';	
				echo '</div>';
				echo '<hr>';	
			}
		}
		?>
	</div>
	
	<div class="grid_3">
		<?php echo form_open('user/economic_use')?>
	
		<?php echo form_input(array('id'=>'reference_number', 'name'=>'reference_number','type'=>'hidden', 'value'=>$reference_number ));?>
		<?php echo form_input(array('id'=>'reference_code', 'name'=>'reference_code','type'=>'hidden', 'value'=>$reference_code ));?>
		<?php echo form_input(array('id'=>'taxon_id', 'name'=>'taxon_id','type'=>'hidden', 'value'=>$taxon_id ));?>	
		<center>
		<?php  echo form_submit(array('name'=>'economic','class'=>'ui-button ui-button-text-only ui-widget ui-state-default ui-corner-all ui-icon-locked'), 'Add Economic Use');?>
		</center>
		<?php echo form_close();?> 	
		
		<b> Economic Use:       Ref.Code </br></b>
		<?php 

		if($econuse_check == true){
			$econuse_query = $this->user_model->econuse_query($taxon_id);
			foreach ($econuse_query -> result() as $row ){	
				echo '<div class="grid_1">';
				echo $row->economic_use;
				echo '</div>';
				echo '<div class="grid_1">';
				echo $row->reference_code.''.$row->reference_number.'</b>';
				echo '</div>';
				echo '<hr>';			
			}
		}
	
		?>
	</div>
	
	<div class="grid_3">
		<?php echo form_open('user/synonyms')?>
	
		<?php echo form_input(array('id'=>'reference_number', 'name'=>'reference_number','type'=>'hidden', 'value'=>$reference_number ));?>
		<?php echo form_input(array('id'=>'reference_code', 'name'=>'reference_code','type'=>'hidden', 'value'=>$reference_code ));?>
		<?php echo form_input(array('id'=>'taxon_id', 'name'=>'taxon_id','type'=>'hidden', 'value'=>$taxon_id ));?>	
	
		<?php  echo form_submit(array('name'=>'synonyms','class'=>'ui-button ui-button-text-only ui-widget ui-state-default ui-corner-all ui-icon-locked'), 'Add Synonyms');?>
		<?php echo form_close();?>  	
	
		<b> Synonyms:       Ref.Code</b>
		<?php 
			if($synonyms_check == true){
				$synonyms_query = $this->user_model->synonyms_query($taxon_id);
				foreach ($synonyms_query -> result() as $row ){	
					echo '<div class="grid_1">';
					echo $row->synonym_name;
					echo '</div>';
					echo $row->reference_code.''.$row->reference_number.'</b>';
					echo '<hr>';				
				}	
			}
		?>	
	</div>

</div>